package cn.darkhorse.messystem.mapper;

import cn.darkhorse.messystem.pojo.SaasTeamUser;
import cn.darkhorse.messystem.vo.SaasTeamVO;
import cn.darkhorse.messystem.vo.SysUserVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 班组人员 Mapper 接口
 * </p>
 *
 * @author maoguanjun
 * @since 2024-04-27
 */
public interface SaasTeamUserMapper extends BaseMapper<SaasTeamUser> {
    /**
     * 班组查询
     * @return
     */
    List<SaasTeamVO> listAll();
    /**
     * 查询班组关联用户
     *
     * @param userName
     * @param userPhone
     * @param teamName
     * @return
     */
    List<SysUserVO> getUserList(@Param("userName") String userName,
                                @Param("userPhone") String userPhone,
                                @Param("teamName") String  teamName);

    SysUserVO getUserByUserId(@Param("userId") Long userId);

    List<SysUserVO> getUserByUserIds(@Param("userIds") List<Long> ids);
}
